package initialize

import (
	deviceEntity "go-iot-project/apps/entity"
	"go-iot-project/pkg/app"
	"go-iot-project/pkg/config"
	"gorm.io/gorm"
)

func InitTable(gorm *gorm.DB) {
	if config.Engine.App.Mode == app.ModeDebug {
		_ = gorm.AutoMigrate( // 错误被忽略
			deviceEntity.Device{},
		)
	}
}
